package com.company.eos.controller.form.audit;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author Song, Wei
 * Date: 2022/4/28 15:59
 */
@Data
@Schema(description = "审批任务表单")
public class AuditTaskForm {

    @NotBlank(message = "flowId不能为空")
    private String flowId;

    @NotBlank(message = "审批意见不能为空")
    @Pattern(regexp = "^同意$|^否决$", message = "审批意见不正确")
    private String approval;

}
